<template>
  <div>
    <span class="head" @click="skip">{{msg}}</span>
    <img class="image" src="@/assets/timg.jpg">
  </div>
</template>

<script>
export default {
  name: 'Index',
  mounted () {
    console.log('mounted===============================')
  },
  methods: {
    skip () {
      console.log('===toMenu===')
      this.$router.push('/Main')
    }
  },
  data () {
    return {
      msg: 'index:跳过'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.image{
  width: 100%;
}
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
